<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<c:import url="/WEB-INF/jsp/head.jsp"/>
</head>
<body>

	<c:import url="/WEB-INF/jsp/cabecalho.jsp"/>
	
	<h3 align="center">Avaliação</h3>
	
	<br><br><br>
	<form method="post" action="" onsubmit="return false">
	<input type="hidden" name="avaliacao.id" value="${avaliacao.id}" />
	<h4 align="center">${avaliacao.questionario.objetivo}</h4>
	<c:forEach items="${avaliacao.avaliacaoQuestaos}" var="avaliacaoQuestao" >
		<h4>${avaliacaoQuestao.questao.descricao}</h4>
		<input type="radio" name="resposta${avaliacaoQuestao.id}}" value="O" />Ótimo<br/>
		<input type="radio" name="resposta${avaliacaoQuestao.id}}" value="B" />Bom<br/>
		<input type="radio" name="resposta${avaliacaoQuestao.id}}" value="M" />Regular<br/>
		<input type="radio" name="resposta${avaliacaoQuestao.id}}" value="R" />Ruim<br/>
		<input type="radio" name="resposta${avaliacaoQuestao.id}}" value="P" />Péssimo<br/>
		<input type="radio" name="resposta${avaliacaoQuestao.id}}" value="N" />Não sei<br/>
		<hr width="50%" align="center" />
	</c:forEach>
	<input type="button" name="salvarSemEnviar" value="Salvar Sem Enviar" />
	<input type="button" name="salvarEnviar" value="Salvar e Enviar" />
	</form>
	<br/><br/>
	<p align="center" ><a href="javascript:history.go(-1);" >Voltar</a></p>
	<c:import url="/WEB-INF/jsp/rodape.jsp"/>
	
</body>
</html>